class Vistoria < ActiveRecord::Base

  attr_accessible :analise_processo_produtivo, :informacoes_complementares, :conclusao, :data_rodape

  belongs_to :analise
  has_many   :fotos, :dependent => :destroy

  validates_presence_of :analise

  def data_rodape
    self[:data_rodape] || Date.today
  end

end
